<h1>Listing toasts</h1>

<table>
  <tr>
    <th>Start at</th>
    <th>End at</th>
    <th>Location</th>
    <th>Capacity</th>
  </tr>

<% for toast in @toasts %>
  <tr>
    <td><%=h toast.start_time %></td>
    <td><%=h toast.end_time %></td>
    <td><%=h toast.location %></td>
    <td><%=h toast.capacity %></td>
    <td><%= link_to 'Show', toast %></td>
    <td><%= link_to 'Edit', edit_toast_path(toast) %></td>
    <td><%= link_to 'Destroy', toast, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New toast', new_toast_path %>
